#include "apilib.h"

void HariMain(void)
{
    int i, timer;
    timer = api_timer_alloc();
    api_timer_init(timer, 128);
    for (i = 20000; i <= 20000000; i += i / 100)
    {
        api_beep(i);
        api_timer_set(timer, 1);
        if (api_getkey(1) != 128)
            break;
    }
    api_beep(0);
    api_exit();
}
